﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;

namespace avemeGame91.Utils
{
    public static class RandomGenerator
    {
        public static Random generator = new Random(System.DateTime.Now.Millisecond);

        /// <summary>
        /// Returns a random float value between two values
        /// </summary>
        static public float Float(float a, float b)
        {
            return MathHelper.Lerp(a, b, (float)generator.NextDouble());
        }

        /// <summary>
        /// Returns a random bool value
        /// </summary>
        public static bool RandomBool()
        {
            return (generator.NextDouble() > 0.5);
        }
    }
}
